Classic wine glass goal: a Jlerts custom widget
===================================================

A real-looking crystal wine glass that gets drunk as your goal goes up: it starts full and every count takes a sip.
Champagne, red wine, rosé or white wine (pick in its settings). When it's empty it shakes for a top-up, then a bottle
comes in and pours it full again, and it starts on the next goal (turn "top it up by itself" off to keep it empty
until you reset it). It counts followers, subs, bits, tips, raiders, channel point redeems, or everything, and
remembers its count between streams.

Counts from: choose Twitch and Kick, Twitch only or Kick only in its settings, so you can have one goal for Kick
followers and another for Twitch subs (add the widget twice). Tips always count, as they don't come from either.

Show a Jlerts goal (recommended)
Make a goal in Jlerts (Widgets -> + New widget -> Goal (followers), Goal (subs)...), then pick it in this widget's
first setting. Jlerts then does the counting: live events, anything you missed while Jlerts was shut (catch-up), the
goal's resets and its reached alert. Every scene shows the same numbers, even after OBS was shut or a scene was
hidden, and the same goal can be shown by several widgets. Its counting settings (what fills it, goal, start from)
are then not used. !wine add 5, !wine set 20 and !wine reset change the Jlerts goal.
Without a goal picked, it counts by itself as before.

Add it to Jlerts
1. Unzip this folder somewhere it can stay (for example Documents\Jlerts widgets\Classic wine glass goal).
2. In Jlerts: Widgets -> + New widget -> Custom widget (HTML / CSS / JS).
3. Widget folder -> Choose folder... and pick this folder. Its settings appear underneath.
4. It takes its own name and size (360 x 560) from widget.json when you choose the folder.
   Drag it onto your overlay. To change its size, drag the edges of its box on the canvas: it gets more room and
   stays sharp in OBS.
Try it with the Test buttons: "Count Test events too" is on, so tests count. Turn that off before you go live, then
type "!wine reset" in chat.

Chat commands (you and your mods): !wine add 5   !wine set 20   !wine reset

Change it
  widget.json  its name and size when it's added
  fields.json  the settings people can change without code
  index.html   the page (the drawing is made by script.js)
  style.css    the title and numbers
  script.js    the counting, and the glass: its shape (bowlW), drink, bubbles, shake and the bottle pouring
After changing a file, refresh the overlay in OBS (right-click it -> Refresh).

Free to use and change for your streams.
